import { App, Plugin } from 'vue'
import * as components from '@/index'
import '../styles/index.scss'
import '../styles/default.scss'
// import { registComponent } from './build'

const install: Exclude<Plugin['install'], undefined> = function installWdComponentsDemo (app: App) {
  Object.entries(components).forEach(([componentName, component]) => {
    app.component(componentName, component)
  })
//   registComponent(app)
}

export default install
export * from '@/index'
export { default as themeDate } from '../utils/themeDate'
